package org.bookie.facebook.components;

import org.apache.tapestry.annotations.InjectObject;
import org.apache.tapestry.annotations.InjectState;
import org.bookie.framework.CommonBaseComponent;
import org.bookie.model.BetSlip;
import org.bookie.model.services.BetSlipDAO;

/**
 * Simplified version of the betslip component 
 * 
 * @author zubairov
 */
public abstract class SlipComponent extends CommonBaseComponent {

	/**
	 * Get injected {@link BetSlip}
	 */
	@InjectState("betSlip")
	public abstract BetSlip getBetSlip();

	/**
	 * Injected BetSlipDAO
	 * @return instance of BetSlipDAO
	 */
	@InjectObject("service:bookie.model.BetSlipDAO")
	public abstract BetSlipDAO getBetSlipDAO();
	
}
